PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


UseThemeFont

Sets the font of the current graphics port to one of the current theme's system fonts.

pascal OSStatus UseThemeFont (
                     ThemeFontID inFontID,
                     ScriptCode inScript);
inFontID
A value of type ThemeFontID . Pass a constant specifying the kind of font (that is, the current large, small, or small emphasized system fonts or the views font) to be applied to the current port. See Theme Font ID Constants for descriptions of possible values.
inScript
A value of type ScriptCode . Pass a script code specifying the script system for which you wish to set the current font; you may pass the metascript code smSystemScript to specify the system script.
function result
A result code; see Result Codes .
DISCUSSION

Your application can call the UseThemeFont function to draw text in one of the current theme's system fonts.

VERSION NOTES

Available with Appearance Manager 1.1 and later.

SEE ALSO

The function GetThemeFont .


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)